package com.xk857.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 传感器
 * @Author CV大魔王
 * @Date 2020.1.21
 */
@ApiModel("传感器")
@Data
public class Sense {

    @ApiModelProperty("pm2.5")
    private int pm25;

    @ApiModelProperty("二氧化碳")
    private int co2;

    @ApiModelProperty("光感强度")
    private int lightIntensity;

    @ApiModelProperty("湿度")
    private int humidity;

    @ApiModelProperty("温度")
    private int temperature;

    public Sense(int pm25, int co2, int lightIntensity, int humidity, int temperature) {
        this.pm25 = pm25;
        this.co2 = co2;
        this.lightIntensity = lightIntensity;
        this.humidity = humidity;
        this.temperature = temperature;
    }

    public Sense() {
    }
}
